﻿#region << 文 件 说 明 >>
/*----------------------------------------------------------------
// 文件名称：Configuration_ProjectBaseInfoViewModel
// 创 建 者：杨程
// 创建时间：2021/10/14 15:46:23
// 文件版本：V1.0.0
// ===============================================================
// 功能描述：
//		
//
//----------------------------------------------------------------*/
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using V.CodeGenerator.CreateCodes.Model;
using Vampirewal.Core.Interface;
using Vampirewal.Core.SimpleMVVM;
using Vampirewal.Core.IoC;
using V.CodeGenerator.Model;

namespace V.CodeGenerator.ViewModel
{
    [VampirewalIoCRegister(ViewModelKey.Configuration_ProjectBaseInfoViewModel, RegisterType.ViewModel)]
    public class Configuration_ProjectBaseInfoViewModel:BillVM<ProjectPoco>
    {
        private IDialogMessage Dialog { get; set; }
        public Configuration_ProjectBaseInfoViewModel(IDataContext dc,IDialogMessage dialog):base(dc)
        {
            //构造函数
            Dialog = dialog;
        }

        public override void PassData(object obj)
        {
            SetEntity(obj as ProjectPoco);
        }

        #region 属性

        #endregion

        #region 公共方法

        #endregion

        #region 私有方法

        #endregion

        #region 命令

        #endregion

        public RelayCommand SaveCommand => new RelayCommand(() =>
        {

            //DoEdit(true);
            DoUpdate();

            Dialog.ShowPopupWindow("保存成功！", (Window)View, Vampirewal.Core.WpfTheme.WindowStyle.MessageType.Successful);
        });
    }
}
